var check=cc.Class({
    extends: cc.Component,
    statics: {
        // _version:VERSION,
        timeoutOne:function(callback,target,time){

            var scheduler = cc.director.getScheduler();
            scheduler.schedule(callback, target, 0,0,time,false);

        },
        timeoutRepeat:function(callback,target,interval,repeat,delay) {
            var scheduler = cc.director.getScheduler();
            scheduler.schedule(callback, target, interval,repeat,delay,false);
        },
        unschedule:function(callback,target) {
            var scheduler = cc.director.getScheduler();
            // console.log(callback,target);
            scheduler.unschedule(callback,target);
            // console.log(scheduler.unschedule(callback,target));

        }
    },

});
